Clearsite\Plugins\OGImage\Admin D

Total Complexity 163
Dependencies 2
Dependents 1
Total lines 954
Lines of code 791
Logical lines of code 431
Comment lines 50
Methods 33
Properties 1

Methods 33

Method Rating Maintainability Complexity Lines of code
show_editor()
C
26
24 163
process_post()
A
45 15 35
valid_fonts()
A
43 13 41
save_meta_data()
A
49 12 28
__construct()
A
36 8 79
admin_panel()
A
42 7 58
add_fontface_definitions()
A
46 7 38
file_put_contents()
S
59 7 12
download_google_font()
S
48 5 32
sanitize_fonts()
S
56 6 17
maybe_move_font()
S
56 5 17
weight_to_suffix()
S
59 5 14
render_option()
S
58 5 13
admin_icon()
S
53 4 26
hex_to_rgba()
S
57 4 14
render_options()
S
59 4 14
add_settings_link()
S
59 4 12
add_meta_boxes()
S
57 3 17
storage()
S
60 3 12
base_settings()
S
49 1 31
google_font_filename()
S
63 3 9
setError()
S
59 2 15
wp_ajax_bsi_get_font()
S
59 2 14
getError()
S
60 2 14
font_weights()
S
57 1 17
admin_notices()
S
69 2 7
google_font_url()
S
73 2 4
getInstance()
S
70 2 7
font_name_weights()
S
61 1 13
meta_panel()
S
72 1 5
getErrors()
S
72 1 5
nice_font_name()
S
70 1 5
array_first()
S
80 1 3